package com.xiaopeng.common.jsql;

import java.util.List;

public class SqlConditionDTO {


    /**
     * 字段类型 字符串、数字、条件组‘括号（）’
     */
    // @Schema(description = "字段类型 字符串、数字、条件组‘括号（）’")
    private String fieldType;

    /**
     * 字段名
     */
    // @Schema(description = "字段名")
    private String fieldName;

    /**
     * 字段值
     */
    // @Schema(description = "字段值")
    private String fieldValue;


    /**
     * 与上一项 逻辑 and 和 or
     */
    // @Schema(description = "与上一项 逻辑 and 和 or")
    private String logic;

    /**
     * 与上一项 逻辑 and 和 or
     */
    // @Schema(description = "与上一项 逻辑 and 和 or")
    private String operation;


    /**
     * 条件组 当fieldType为条件组‘括号（）’  children有值
     */
    // @Schema(description = "条件组 当fieldType为条件组‘括号（）’  children有值")
    private List<SqlConditionDTO> children;


    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(String fieldValue) {
        this.fieldValue = fieldValue;
    }

    public String getLogic() {
        return logic;
    }

    public void setLogic(String logic) {
        this.logic = logic;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public List<SqlConditionDTO> getChildren() {
        return children;
    }

    public void setChildren(List<SqlConditionDTO> children) {
        this.children = children;
    }

}
